package com.xcesys.extras.remoting;

import java.util.Date;

/**
 * Abstract remoting service interface.
 * 
 * @author danne
 * 
 */
public interface RemotingService {

	/**
	 * Returns system setting value by given moduleId, setting name.
	 * 
	 * @param moduleId
	 *            module id or null.
	 * @param name
	 *            system setting name.
	 * @param defaultValue
	 *            default value if setting value not be set, can be null.
	 * @return
	 */
	String getSettingValueByModuleAndName(Long moduleId, String name,
			String defaultValue);

	/**
	 * Returns system current date from server.
	 * 
	 * @return system current date.
	 */
	Date getSystemDate();
}
